package com.smart.community.feign.parking;

import com.smart.community.commons.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 停车服务Feign接口
 * 
 * @author Wu.Liang
 */
@FeignClient(
    name = "smart-community-parking",
    fallback = ParkingFeignClientFallback.class
)
public interface ParkingFeignClient {
    
    /**
     * 获取停车位信息
     * 
     * @param userId 用户ID
     * @return 停车位信息
     */
    @GetMapping("/parking/space/{userId}")
    Result<?> getParkingSpace(@PathVariable("userId") Long userId);
    
    /**
     * 获取停车记录
     * 
     * @param userId 用户ID
     * @return 停车记录
     */
    @GetMapping("/parking/record/{userId}")
    Result<?> getParkingRecords(@PathVariable("userId") Long userId);
    
    /**
     * 获取停车费用
     * 
     * @param userId 用户ID
     * @return 停车费用
     */
    @GetMapping("/parking/fee/{userId}")
    Result<?> getParkingFee(@PathVariable("userId") Long userId);
} 
